package ldh.im.fxbase.util;

import javafx.scene.paint.Color;
import org.kordamp.ikonli.javafx.FontIcon;

public class IconUtil {

    public static FontIcon createIcon(String iconName, int iconSize, Color color) {
        FontIcon fontIcon = new FontIcon();
        fontIcon.setIconLiteral(iconName);
        fontIcon.setIconSize(iconSize);
        fontIcon.setIconColor(color);
        return fontIcon;
    }
}
